//
//  KLGoodDetailModel.h
//  KunLun
//
//  Created by Mac on 2017/12/14.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KLShopModel.h"
@interface KLGoodDetailModel : NSObject
@property(nonatomic, strong) NSNumber                     *goodID;

/**
 商户id
 */
@property(nonatomic, strong) NSNumber                     *shops_id;
@property(nonatomic, strong) NSString                     *goods_name;
//图片
@property(nonatomic, strong) NSString                     *exhibition_map;

/**
 商品介绍
 */
@property(nonatomic, strong) NSString                     *abstract;
@property(nonatomic, strong) NSNumber                     *classification;//类型，1各地特产，2名车出租，3匀加速，4菜园子，8旅游

/**
 销售类型（1.价格，2.折扣券）
 */
@property(nonatomic, assign) NSNumber                     *sale_type;
@property(nonatomic, strong) NSString                     *price;

/**
 库存
 */
@property(nonatomic, strong) NSNumber                     *stock;

/**
 折扣券开始时间
 */
@property(nonatomic, strong) NSString                     *bargain_statr_time;
@property(nonatomic, strong) NSString                     *bargain_end_time;
@property(nonatomic, assign) BOOL                           is_bargain ;
@property(nonatomic, assign) BOOL                           is_bao ;
@property(nonatomic, assign) BOOL                           is_my ;
/**
 折扣价格
 */
@property(nonatomic, strong) NSNumber                     *bargain_price;
//图片头部数组
@property(nonatomic, strong) NSArray                     *cover_map;
//详细图片
@property(nonatomic, strong) NSArray                     *synopsis;
/**
 已售出
 */
@property(nonatomic, strong) NSNumber                     *sell_num;

@property(nonatomic, strong) KLShopModel                     *shops;

@property(nonatomic, strong) NSString                     *goods_detail;
@property(nonatomic, assign) NSInteger                     num;//数量，自定义属性
@property(nonatomic, assign) CGFloat                     total_price;//总价，自定义属性
//折扣价格，新增字段，有就显示，没有就原价
@property(nonatomic, strong) NSString                    *discount_price;


@property(nonatomic, strong) NSString                     *address;
//"id": 3,
//"shops_id": 1,
//"goods_name": "测试商品",
//"abstract": "哈哈哈哈",
//"sale_type": 1,
//"price": "10.00",
//"stock": 100,
//"bargain_statr_time": "06:00",
//"bargain_end_time": "17:30",
//"is_bargain": 1,
//"bargain_price": 50,
//"cover_map": [
//              "http://oyvgebsgd.bkt.clouddn.com/uploads/static/20171114/ea72552e-6090-cb37-b401-de957694f1bf.jpg"
//              ],
//"sell_num": 0,
//"shops": {
//    "id": 1,
//    "shops_name": "平台自营",
//    "shops_ID": "",
//    "is_associator": "是",
//    "star": "0.0",
//    "head_portrait": "111",
//    "abstract": "111"
//}
@end
